package cc.surui.ui.fl 
{
	import cc.surui.mc.LCDDigit;
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author Surui
	 */
	public class UILCDDigit extends Sprite 
	{
		private var _lcdDigit:LCDDigit = new LCDDigit();
		private var _value:int;
		public function UILCDDigit() 
		{
			this.addChild(_lcdDigit);
			_lcdDigit.gotoAndStop(_lcdDigit.totalFrames);
		}
		
		public function set value( num:int ):void {
			this._value = num;
			var index:int = num + 1;
			_lcdDigit.gotoAndStop(index);
		}
		
	}

}